﻿@if(Request.IsAuthenticated) {
    <text>
    &nbsp;&nbsp;  Hi,<strong>@User.Identity.Name</strong> | 
    @if (HttpContext.Current.User.IsInRole("Admin") || HttpContext.Current.User.IsInRole("Editer"))
    {
       @Html.ActionLink("我的主页", "Manage", "Home") 
    }
    else
    {
        @Html.ActionLink("我的主页", "Zone", "Home")
    }
    | @Html.ActionLink("注销", "LogOff", "Account") 
    </text>
}
else
{
    @:  @Html.ActionLink("登陆", "LogOn", "Account") | @Html.ActionLink("加入我们", "Register", "Account")
}

